﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;


namespace DAL
{
    public class ProjectDAL
    {
        /// <summary>
        /// 项目发起方法
        /// </summary>
        /// <param name="project">项目实体类</param>
        /// <returns></returns>
        public bool Add(ProjectInfo project)
        {
            if (DBHelper.ExecuteSQL($"insert ProjectInfo(UserID,ProjectTypeNo,ProjectName,Start,Label) values('1','1','{project.ProjectName}','{project.Start}','sblsl;ljsz')")<0)
            {
                return false;
            }

            return true;
        }
    }
}
